package com.yy.controller;
import com.yy.aiservice.AIUtils;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/ai")
public class AIController {
    @PostMapping("/genChart")
    public String genChart(@RequestParam String question) {
        if (question == null) {
            return null;
        }
        System.out.println("hihi");
        String answer = AIUtils.getAnswer(question);
        return answer;
    }
}
